//
//  HomeCollectionReusableView.m
//  Cat
//
//  Created by lushitong on 2018/12/20.
//  Copyright © 2018年 lushitong. All rights reserved.
//

#import "HomeCollectionReusableView.h"
@interface HomeCollectionReusableView()

@property (nonatomic, strong) UILabel *leftLabal;

@end
@implementation HomeCollectionReusableView

- (void)setLeftTitle:(NSString *)leftTitle {
	_leftLabal.text = leftTitle;
}

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		self.backgroundColor = [UIColor whiteColor];
		[self loadAllSubViews];
	}
	return self;
}

- (void)loadAllSubViews {
	[self addSubview:self.leftLabal];
	[self.leftLabal mas_makeConstraints:^(MASConstraintMaker *make) {
		make.left.equalTo(self.mas_left).offset(kQKFitModuleDecimal(15.0));
		make.top.equalTo(self.mas_top).offset(kQKFitModuleDecimal(17.0));
	}];
}

#pragma mark----- lazy init -----

- (UILabel *)leftLabal {
	if (!_leftLabal ) {
		_leftLabal = [UILabel labelWithFont:[UIFont boldSystemFontOfSize:kQKFitFont(18)] textColor:COLOR_WITH_HEX(0x4A4A4A)];
	}
	return _leftLabal;
}

@end
